package com.web.controller;

import com.core.websocket.WebSocket;
import com.service.LxfService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletResponse;

/**
 * Created with IntelliJ IDEA.
 * User: xianfei
 * Date: 15-12-23
 * Time: 下午3:23
 * To change this template use File | Settings | File Templates.
 */
@Controller
@RequestMapping("/websocket")
public class WebSocketController {

    @Autowired
    private LxfService lxfService;

    @RequestMapping(value = "all_user", method = RequestMethod.GET)
    public void showAllUser(HttpServletResponse response) {
        WebSocket.findAllOnlineUser(response);
    }

}
